<template>
    <div>
        Shop模块:
        <div v-for="item in list" :key="item.id">
            <p>商品序号：{{ item.id }}</p>
            <p>商品名称：{{ item.name }}</p>
            <p>商品价格：{{ item.price }}</p>
        </div>
    </div>
</template>

<script setup>
    import { useShopStore } from '../store/shop'
    import { storeToRefs } from 'pinia'

    const shop = useShopStore()
    const {list} = storeToRefs(shop)
</script>